package com.ihr360.insurance.model.dto.benefits.projection;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.ihr360.insurance.model.dto.benefits.MandatoryBenefitTemplate;
import com.ihr360.insurance.model.dto.benefits.PaymentConfig;
import com.ihr360.insurance.model.vo.BenefitTypeVo;
import org.springframework.data.rest.core.config.Projection;

import java.util.List;

@Projection(name = "base", types = {MandatoryBenefitTemplate.class})
public interface MandatoryBenefitTemplateProjectionBase {
    Long getId();
    String getCode();
    List<PaymentConfig>  getConfigs();

    @JsonProperty("type")
    BenefitTypeVo getVoType();
}